<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<div class="form-horizontal">
    
   <div class="form-group">
     <label class="control-label col-xs-2">用户昵称：</label>
     <div class="col-xs-4 pull-left" style="width: 30%;">
       <p class="form-control-static">${user.profile.nickname}</p>
     </div>
     <label class="control-label col-xs-2">微信账号：</label>
      <div class="col-xs-4 pull-left"  style="width: 30%;">
        <p class="form-control-static">${user.wechat.code}</p>
      </div>
   </div>                    
  
   <div class="form-group">
     <label class="control-label col-xs-2">国-省-市-区：</label>
     <div class="col-xs-4 pull-left" style="width: 30%;">
       <p class="form-control-static">${user.profile.country}-${user.profile.province}-${user.profile.region}-${user.profile.district}</p>
     </div>
   </div>
   
   <div class="form-group">
     <label class="col-xs-2 control-label">头像：</label>
     <div class="col-xs-4 pull-left"  style="width: 30%;">
       <c:choose>
         <c:when test="${empty user.profile.avatar}">
           <p class="form-control-static">${user.profile.avatar}</p>
         </c:when>
         <c:otherwise>
           <img src="${qiniu.prod}/${user.profile.avatar}-qrcode">
         </c:otherwise>
       </c:choose>
     </div>
   </div>
</div>